const router = require("express").Router();
const bookBorrow = require("../controller/bookBorrow");

// 预约
router.post("/subscribe", bookBorrow.subscribe);

// 取消预约
router.delete("/cancelSubscribe", bookBorrow.cancelSubscribe);

// 删除（归还）
router.delete("/deleteBook", bookBorrow.deleteBook);

// 改
// router.patch('/updateBook',bookBorrow.updateBook)

// 查
router.get("/getBorrow", bookBorrow.getBorrowRecord);

module.exports = router;
